from rest_framework.viewsets import ModelViewSet
from apps.wthg_admin.serializers.brand import BrandModelSerializer
from apps.goods.models import Brand
from apps.wthg_admin.utils import UtilsPageNumberPagination
from rest_framework.permissions import DjangoModelPermissions, IsAdminUser


class BrandModelViewSet(ModelViewSet):
    """品牌管理视图"""
    queryset = Brand.objects.all()
    serializer_class = BrandModelSerializer
    pagination_class = UtilsPageNumberPagination



